//
//  FocusDataMethod.h
//  WRY
//
//  Created by Yang on 9/8/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@protocol FocusDataMethodDelegate

- (void)dataHasBeenChanged;

@end


@interface FocusDataMethod : NSObject {
	NSMutableArray *dataArray;
	
	id <FocusDataMethodDelegate> delegate;
 
}
@property(nonatomic,assign)id <FocusDataMethodDelegate> delegate;

+ (FocusDataMethod *)sharedInstance;
- (void)initData;
- (void)save;
- (NSString *)dataPath; 
- (NSArray *)data;
- (BOOL)companyExisting:(NSString *)companyID;
//- (void)addNewCompany:(NSString *)companyName companyID:(NSString *)compID;
- (void)addNewCompany:(NSDictionary *)companyData;
- (void)deleteCompany:(NSString *)companyID;

- (void)resetData:(NSArray *)array;

@end
